﻿namespace Agent
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Markup;
    using System.Windows.Navigation;

    [GeneratedCode("PresentationBuildTasks", "4.0.0.0")]
    public class PaymentWindow : Window, IComponentConnector
    {
        private string a;
        internal WebBrowser b;
        private bool c;
        [CompilerGenerated]
        private static LoadCompletedEventHandler d;

        public PaymentWindow()
        {
            this.a = "http://thesafety.us";
            this.InitializeComponent();
        }

        public PaymentWindow(string A_0)
        {
            this.a = "http://thesafety.us";
            this.a = A_0;
            this.InitializeComponent();
        }

        [EditorBrowsable(EditorBrowsableState.Never), DebuggerNonUserCode]
        private void a(int A_0, object A_1)
        {
            switch (A_0)
            {
                case 1:
                    ((PaymentWindow) A_1).Loaded += new RoutedEventHandler(this.Window_Loaded);
                    return;

                case 2:
                    this.b = (WebBrowser) A_1;
                    return;
            }
            this.c = true;
        }

        [DebuggerNonUserCode]
        public void InitializeComponent()
        {
            if (!this.c)
            {
                this.c = true;
                Uri resourceLocator = new Uri("/TheSafety;component/paymentwindow.xaml", UriKind.Relative);
                Application.LoadComponent(this, resourceLocator);
            }
        }

        private void Window_Loaded(object A_0, RoutedEventArgs A_1)
        {
            this.b.Navigate(new Uri(this.a));
            if (d == null)
            {
                d = delegate (object A_0, NavigationEventArgs A_1) {
                };
            }
            this.b.LoadCompleted += d;
        }
    }
}

